package com.chanyachting.emall.service;

import java.util.List;

import com.chanyachting.emall.domain.Member;
import com.chanyachting.emall.domain.Shortmessage;


/***
 * 站内短信操作接口
 * @author robert
 *
 */
public interface ShortmessageService {
	
	//创建站内短信
	public boolean createShortmessage(Shortmessage sm);
	
	//删除站内短信
	public boolean delShortmessage(Shortmessage sm);
	
	//获得一个站内短信对象
	public Shortmessage getOneShortmessage(Shortmessage sm);
	
	//获得所有站内短信对象
	public List<Shortmessage> getAllShortmessage();
	
	//发送站内短信
	public boolean sendShortmessage(Shortmessage sm);
	
	//阅读站内短信
	public boolean readShortmessage(Shortmessage sm);
	
	//批量删除站内短信
	public boolean delShortmessageButh();
	
	//获得指定收信人所有站内短息
	public List<Shortmessage> getAllShortmessageByAccess(Member member);
	
	//获得指定发信人所有已发送的站内短信
	public List<Shortmessage> getAllShortmessageBySender(Member member);
	
	//修改站内短信状态
	public boolean updateShortmessageStatus(Shortmessage sm);

}
